#ifndef __APP_BATTERY_H
#define __APP_BATTERY_H

#include "stdint.h"

#define MAX_BAT_ADC 2000
#define MIN_BAT_ADC 800

typedef struct {
  uint16_t value;
  int8_t  level;
}THRESHOLD_ONE;

typedef struct{
  uint16_t buf[10];
  uint8_t  count;
  
  uint16_t value;
  int8_t  level;
  int8_t tempLv;
  int8_t valueBigNum;
}BAT_BUF;

extern BAT_BUF bat;


void bat_handler(void* arg);

#endif

